package com.meida.paotui.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 评分表
 *
 * @author flyme
 * @date 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_evaluate")
@TableAlias("evaluate")
@ApiModel(value="BusEvaluate对象", description="评分表")
public class BusEvaluate extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "evaluateId", type = IdType.ID_WORKER)
    private Long evaluateId;

    @ApiModelProperty(value = "订单id")
    private Long goodsOrderId;

    @ApiModelProperty(value = "被订分人")
    private Long forUserId;

    @ApiModelProperty(value = "服务评分")
    private BigDecimal serveGrade;

    @ApiModelProperty(value = "送货速度评分")
    private BigDecimal speedGrade;

    @ApiModelProperty(value = "评分人")
    private Long userId;

    @ApiModelProperty(value = "创建日期")
    private String createDate;

    @ApiModelProperty(value = "状态(是否显示)")
    private Integer status;

    @ApiModelProperty(value = "评论内容")
    private String evaluateContent;

    @ApiModelProperty(value = "送货员评分")
    private BigDecimal userGrade;

}
